# This is a sample Python script.

# Press Shift+F10 to execute it or replace it with your code.
# Press Double Shift to search everywhere for classes, files, tool windows, actions, and settings.

import os
import sys
from time import sleep
from playwright.sync_api import sync_playwright


def open_url(url):
    with sync_playwright() as driver:
        browser = driver.chromium.launch(headless=False, channel="chrome", args=['--start-maximized'])
        context = browser.new_context(no_viewport=True, ignore_https_errors=True)
        page = context.new_page()
        page.goto(url)
        print(url)
        # sleep(10)
        while True:
            pass


if __name__ == '__main__':
    url = ("https://www.hao123.com/?src=from_pc")
    open_url(url)

